package com.psychproject.web.domains;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

/**
 * 用户基类
 */
public class User extends BaseDomain {
	/**
	 * 用户姓名
	 */
	private String name;
	/**
	 * 生日
	 */
	@DateTimeFormat(iso = ISO.DATE)
	private Date birthDate;
	/**
	 * 邮箱地址
	 */
	private String email;
	/**
	 * 电话号码
	 */
	private String phoneno;

	/**
	 * 创建日期
	 */
	@DateTimeFormat(iso = ISO.DATE_TIME)
	private Date registerTime;

	public User() {
		super();
		birthDate = new Date();
		registerTime = new Date();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhoneno() {
		return phoneno;
	}

	public void setPhoneno(String phoneno) {
		this.phoneno = phoneno;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

}
